array operations in data structure